//---------------------------------------------------------------------------

#ifndef InprodFormH
#define InprodFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Grids.hpp>
#include <Buttons.hpp>
#include <DBGrids.hpp>
#include <DB.hpp>
#include <IBCustomDataSet.hpp>
#include <IBQuery.hpp>
#include <ComCtrls.hpp>
#include "class_TabCtrl.h"
#include <AppEvnts.hpp>
#include "Valut_class.h"
//---------------------------------------------------------------------------
class TFInprod : public TForm
{
__published:	// IDE-managed Components
        TPanel *Panel1;
        TPanel *Panel2;
        TLabel *Label1;
        TLabel *Label2;
        TEdit *Edit2;
        TLabel *Label3;
        TMemo *Edit3;
        TLabel *Label4;
        TMemo *Edit4;
        TLabel *Label5;
        TMemo *Edit5;
        TLabel *Label6;
        TMemo *Edit6;
        TLabel *Label8;
        TComboBox *ComboBox1;
        TBitBtn *BitBtn1;
        TBevel *Bevel1;
        TBitBtn *BitBtn2;
        TBitBtn *BitBtn3;
        TBitBtn *BitBtn4;
        TDBGrid *DBGrid1;
        TDataSource *DataSource1;
        TIBQuery *TBAsk;
        TIBQuery *Ask;
        TIntegerField *TBAskID;
        TIBStringField *TBAskART;
        TIBStringField *TBAskCNAME;
        TIBStringField *TBAskPNAME;
        TIntegerField *TBAskCNT;
        TIBBCDField *TBAskPRICE;
        TIBBCDField *TBAskSELLPRICE;
        TIBBCDField *TBAskOPTPRICE;
        TIBQuery *ask1;
        TLabel *Label9;
        TMemo *Edit7;
        TMemo *Edit8;
        TMemo *Edit9;
        TLabel *Label10;
        TLabel *Label11;
        TDateTimePicker *DT;
        TApplicationEvents *ApplicationEvents1;
        TLabel *Label12;
        TComboBox *Edit1;
        TIBQuery *qAsk;
        void __fastcall Edit1KeyUp(TObject *Sender, WORD &Key,
          TShiftState Shift);
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
        void __fastcall BitBtn2Click(TObject *Sender);
        void __fastcall BitBtn3Click(TObject *Sender);
        void __fastcall BitBtn1Click(TObject *Sender);
        void __fastcall BitBtn4Click(TObject *Sender);
        void __fastcall ApplicationEvents1Message(tagMSG &Msg,
          bool &Handled);
        void __fastcall DTKeyPress(TObject *Sender, char &Key);
        void __fastcall ComboBox1KeyPress(TObject *Sender, char &Key);
        void __fastcall Edit1KeyPress(TObject *Sender, char &Key);
        void __fastcall Edit2KeyPress(TObject *Sender, char &Key);
        void __fastcall ComboBox1Change(TObject *Sender);
        void __fastcall Edit3KeyPress(TObject *Sender, char &Key);
        void __fastcall Edit7KeyPress(TObject *Sender, char &Key);
        void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift,
          int WheelDelta, TPoint &MousePos, bool &Handled);
        void __fastcall Edit1Change(TObject *Sender);
        void __fastcall Edit3Change(TObject *Sender);
        void __fastcall Edit3Enter(TObject *Sender);
private:	// User declarations
        int CurrID;
        TTabCtrl *Disp;
        float UsdK;
public:		// User declarations
        __fastcall TFInprod(TComponent* Owner);
        void __fastcall ReLoadData();
        void __fastcall AbortData();
        void __fastcall TryPostData();
        void __fastcall UpdatePrice(int T);
};
//---------------------------------------------------------------------------
extern PACKAGE TFInprod *FInprod;
//---------------------------------------------------------------------------
#endif
